Skip to content
This repository was archived by the owner on Aug 4, 2022. It is now read-only.

Install workload in scale unit even if found Ready#128

Merged
AndreasHassing merged 1 commit intomainfrom
always-install-spoke-workloadinstances
Jan 7, 2022
Merged

Install workload in scale unit even if found Ready#128
AndreasHassing merged 1 commit intomainfrom
always-install-spoke-workloadinstances

Conversation

@AndreasHassing
Copy link
Copy Markdown
Contributor

We want to install workloads when they are in Ready state in Scale unit, otherwise upgrades and movement to spoke can cause problems. Since there is no real workload versioning in the dev tools, we need to just overwrite on every install as we can't know what has changed without introspecting the hub workload versus what is installed in the scale unit.

#patch

Fixes #126.

@AndreasHassing AndreasHassing requested a review from Omaaarz January 7, 2022 10:29

foreach (WorkloadInstance workloadInstance in workloadInstances)
{
if (await WorkloadInstanceManager.IsWorkloadInstanceInReadyState(scaleUnitAosClient, workloadInstance))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess one of the reasons we might have had this reason, is that if in the previous run couple of workloads were installed, we just need to install only the remaining ones.

Not sure if that will cause us problems?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as a single run of workload installation succeeds, we're fine.

The new behavior will act as a workload upgrade; can that cause problems, you think?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On a second thought, it shouldn't be causing problems. At least, this will save us the workarounds we are doing now.

@AndreasHassing AndreasHassing merged commit 668badd into main Jan 7, 2022
@AndreasHassing AndreasHassing deleted the always-install-spoke-workloadinstances branch January 7, 2022 13:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workload installation should occur even when workload is Ready

2 participants